package org.r13notes.activity;

import org.r13notes.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.ImageView;

public class BaseActivity extends Activity{
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); 	
        setContentView(R.layout.baseview); 
        getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.titlebar);       
        
        ImageView addButton = (ImageView) findViewById(R.id.titleBarAddButton);
        ImageView remButton = (ImageView) findViewById(R.id.titleBarRemoveButton);
        
        addButton.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {

				Intent myIntent = new Intent(getApplicationContext(), TempCreateNoteActivity.class);
				startActivity(myIntent);
				
			}
        	
        });
        
        remButton.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				
				// TODO
				
			}
        	
        });
       
    }
}
